package com.ddyx.service;

import com.ddyx.util.RequestForm;
import com.ddyx.util.ResponseForm;

/**
 * @ClassName: CartController.java
 * @Description: 购物车相关功能
 * @author: liuhoujie
 * @date: 2018年1月16日
 */
public interface ICartService {

	ResponseForm CartPage(RequestForm param);

	ResponseForm batchCart(RequestForm param);

	/**
	 * 获取购物车列表
	 * @param param
	 * @return
	 */
	ResponseForm getCart(RequestForm param);

	/**
	 * 添加商品进购物车
	 * @param param
	 * @return
	 */
	ResponseForm insertOrUpdateGoodsToCart(RequestForm param);

	/**
	 * 修改购物车商品属性
	 * @param param
	 * @return
	 */
	ResponseForm modifyGoodsInCart(RequestForm param);

	/**
	 * 删除购物车内商品
	 * @param param
	 * @return
	 */
	ResponseForm removeGoodsInCart(RequestForm param);

	/**
	 * 清空购物车
	 * @param param
	 * @return
	 */
	ResponseForm emptyCart(RequestForm param);
}
